<?php

  // Display all header alerts via messageStack:

  if ($messageStack->size('header') > 0) {

    echo $messageStack->output('header');

  }

  if (isset($_GET['error_message']) && zen_not_null($_GET['error_message'])) {

  echo htmlspecialchars(urldecode($_GET['error_message']), ENT_COMPAT, CHARSET, TRUE);

  }

  if (isset($_GET['info_message']) && zen_not_null($_GET['info_message'])) {

   echo htmlspecialchars($_GET['info_message'], ENT_COMPAT, CHARSET, TRUE);

} else {



}

?>

<?php

if (!isset($flag_disable_header) || !$flag_disable_header) {

?>

<div id="header">

<div class="wrapper">

<div class="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></div>

<div class="menu">

<?php if (EZPAGES_STATUS_HEADER == '1' or (EZPAGES_STATUS_HEADER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?>

<?php require($template->get_template_dir('tpl_ezpages_bar_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_header.php'); ?>

<?php } ?>

</div>

<div class="navigation2">



</div>

<div class="navigation">



<?php if ($_SESSION['customer_id']) { ?>

    <a rel="nofollow" href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a>

    <a rel="nofollow" href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a>

<?php

      } else {

        if (STORE_STATUS == '0') {

?>

    <a rel="nofollow" href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a>

	<a rel="nofollow" href="<?php echo zen_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'); ?>"><?php echo 'Register'; ?></a>

<?php } } ?>



			

</div>

<!-- ========== SHOPPING CART ========== -->

<div class="cart">	

<a rel="nofollow" class="st1" href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><span>Shopping Cart:</span></a>

<a rel="nofollow" class="on"  href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><span class="st2"><span class="count"><?php echo $_SESSION['cart']->count_contents();?> item(s)</span></span></a> 



	  						

</div>

<!-- =================================== -->

<div id="head-search">

<?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?>

</div>

<div style="display: block;" class="currencies jqtransformdone">



<?php $column_box_default = "tpl_box_header.php";require(DIR_WS_MODULES . 'sideboxes/currencies.php');?> 



</div>

</div>

<div class="clear"></div>

</div>

<?php } ?>

<div class="clear"></div>